import 'package:flutter/material.dart';
import 'package:library_base/res/app_theme.dart';
import 'package:library_base/res/colors.dart';
import 'package:library_base/utils/sp_util.dart';
import 'package:library_base/utils/theme_util.dart';

extension ThemeDataExt on ThemeData {
  Color pressColor() {
    return Colours.grey;
  }

  Color hoveredColor() {
    return colorScheme.primary;
  }

  Color focusedColor() {
    return colorScheme.primary;
  }

  Color disableColor() {
    return Colours.grey;
  }

  Color pressTextColor() {
    return colorScheme.secondary;
  }

  Color hoveredTextColor() {
    return colorScheme.secondary;
  }

  Color focusedTextColor() {
    return colorScheme.secondary;
  }

  Color disabledTextColor() {
    return colorScheme.secondary;
  }

  Color normalTextColor() {
    return Colours.text_black;
  }

  Color secondaryTextColor() {
    return Colours.secondaryTextColor;
  }

  Color thirdlyTextColor() {
    return Colours.thirdlyTextColor;
  }

  Color fourthTextColor() {
    return Colours.fourthTextColor_green;
  }

  Color fifthTextColor() {
    return Colours.fifthTextColor_green;
  }

  Color sixthTextColor() {
    return Colours.sixthTextColor_green;
  }

  Color seventhTextColor() {
    return Colours.main_primaryColor_green;
  }

  Color eighthTextColor() {
    return Colours.eighthTextColor_green;
  }

  Color secondaryBgColor() {
    return Colours.main_bgColor_green;
  }

  Color thirdlyBgColor() {
    return Colours.main_bg_2_green;
  }

  Color fourthBgColor() {
    return Colours.main_primary_color_3_green;
  }

  Color dividingLineColor() {
    return Colours.main_driverColor_green;
  }

  Color secondaryDividingLineColor() {
    return Colours.dividingLine_green;
  }

  Color tipBgColor() {
    return Colours.main_bg_1_blue;
  }

  Color bluetoothColor() {
    return Colours.bluetooth_green;
  }

  Color noBluetoothColor() {
    return Colours.no_bluetooth_green;
  }

  Color toastBgColor() {
    return Colours.main_toast_bgColor_green;
  }

  List<Color> buttonLeftBgColor() {
    return [Colours.main_primary_color_2_green, Colours.main_primaryColor_1_green];
  }

  List<Color> buttonLeft1BgColor() {
    return [Colours.button_left2_green, Colours.button_left1_green];
  }

  List<Color> buttonRight1BgColor() {
    return [Colours.fourthTextColor_green, Colours.fourthTextColor_green];
  }
}
